package com.chenyun.message;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;

/**
 * 服务配置类型
 *
 * @author: Lonni
 * @date: 2024/1/4 0004 15:04
 */
@Data
@Configuration
@ConfigurationProperties(value = "chenyun.message")
public class MessageProperties implements Serializable {

    private Boolean enableWs = false;

    private Boolean enableSms = true;

    private String wsPrefix="/ws";
    /**
     * websocket端口
     */
    private Integer wsPort;
    private String wsIp="127.0.0.1";
    /**
     * 是否开启集群
     */
    private Boolean enableCluster;
    /**
     * 是否开开启ssl
     */
    private Boolean enableSsl;
    /**
     * 证书地址
     */
    private String keyStore;
    private String trustStore;
    /**
     * 证书密码
     */
    private String keyStorePwd;
}



